<html>
	<?php
		require_once("classes/Head.php");
		require_once("classes/Section.php");
		require_once("classes/Image.php");
		require_once("classes/Title.php");
		require_once("classes/Form.php");
		require_once("classes/Paragraph.php");
		require_once("classes/LinkList.php");
		
		$head = new Head();
	
		$head->addTitle("Ofertas de Emprego");
		$head->addLayout("css/style.css");
		$head->printHead();	
	?>
    
    <body id="body">
    	<?php
    		include("init.php");
		?>
		<div id="struture">
			<div id="container">
		        <?php
		        	$header = new Section("header");					
						$header->addElement(new Image("images/job.png", "logo", "100px", "100px"));
						
						$title = new Title("Ofertas de Emprego", "title");
						$header->addElement($title);
					$header->printSection();
					
					
					$leftPage = new Section("leftPage");
						$title = new Title("Login", "menuTitle");
						$leftPage->addElement($title);
						
						$formLogin = new Form("scripts/validateLogin.php", "POST", "login");
						$formLogin->addInput("", "text", "user", "input", "", "", TRUE);
						$formLogin->addInput("", "password", "pass", "input", "", "", TRUE);
						$formLogin->addInput("", "submit", "", "button", "Login", "", FALSE);
						$leftPage->addElement($formLogin);
						
						$title->setText("Registo");
						$leftPage->addElement($title);
						$link = new LinkList("menuEntry");
						$link->addLink("Registar", "signup.php", new Image("images/add.png", "icon", "16px", "16px"));
						$leftPage->addElement($link);
					$leftPage->printSection();
					
					$content = new Section("content");
						$homeTitle = new Title("Home", "seccaoTitle");
						$content->addElement($homeTitle);
						
						$content->addHtmlCode("<div align='center'>");
						$content->addElement(new Image("images/job.png", "", "200px", "200px"));
						
						$text = new Paragraph("Encontre aqui as melhores Ofertas de Emprego", "title2");
						$content->addElement($text);
						$content->addHtmlCode("</div>");
					$content->printSection();
					
					$footer = new Section("footer");
						$text->setText("Copyright&copy Nuno Pombo");
						$text->setClass("");
						$footer->addHtmlCode("</hr>");
						$footer->addElement($text);
					$footer->printSection();
		        ?>
			</div>
		</div>
    </body>
</html>